.PHONY: run
run:
	docker run --name nginx -p 10000:80 -itd liushiju/nginx:cpu-fix
	docker run --name phpfpm -itd --network container:nginx liushiju/php-fpm:cpu-fix

.PHONY: build
build:
	docker build -t liushiju/nginx:cpu-fix -f Dockerfile.nginx .
	docker build -t liushiju/php-fpm:cpu-fix -f Dockerfile.php-fpm .

.PHONY: clean
clean:
	docker rm -f nginx phpfpm || echo "Container nginx already deleted."
